package top.shiyiri.team.domain;

import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@NoArgsConstructor
public class Employee {

    private int id;
    private String name;
    private int age;
    private double salary;

    public Employee(int id, String name, int age, double salary) {
        this.id = id;
        this.name = name;
        this.age = age;
        this.salary = salary;
    }

    public String getDetails() {
        return id + "\t" + name + "\t" + age + "\t\t" + salary;
    }

    @Override
    public String toString() {
        return id + "\t" + name + "\t" + age + "\t\t" + salary;
    }
}
